package com.yufubao.model.dto.popularize.authorization;

import com.yufubao.framework.core.validator.constraints.Phone;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 推广人/小蜜蜂人员表
 * 
 * @author zhangzhan
 * @email 52194440@qq.com
 * @date 2024-09-15 23:45:03
 */
@Data
public class BeesInfoDto implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private Long beesId;

	/**
	 * 手机号
	 */
	@Phone
	private String phone;

	@NotEmpty(message = "账号不能为空")
	@Length(min = 5, max = 19, message="账号长度在5-18字符")
	private String account;
	@NotEmpty(message = "密码必须填写")
	@Length(min = 6,max = 18,message = "密码必须是6—18位字符")
	private String password;

	/**
	 * 代理人id/推荐码
	 */
	@NotNull(message = "代理人id不能为空")
	private Long managerId;
	/**
	 * 状态（0正常 1停用）
	 */
	private String status;
	/**
	 * 昵称
	 */
	@NotNull(message = "昵称不能为空")
	private String nickname;
	/**
	 * 城市
	 */
	private String city;
	/**
	 * 省份
	 */
	private String province;
	/**
	 * 区/县
	 */
	private String county;
	/**
	 * 备注
	 */
	private String remark;
}
